{* PAGE HEADER *}
{$script}

{literal}
	<script language="javascript">
	function actMenu(action) {
		var forma = document.getElementById('menu_form');
		forma.action.value = action;
		forma.submit();
	}
	</script>
{/literal}
	
<form method="post" id="menu_form">
<input type="hidden" name="action" value="">
</form>
<div id="col1_content" class="clearfix">
<!-- Begin Logo -->
	<div class="grey_box" id="logo">
		<div class="box_content_row">
			<div class="box_content" id="logo_content">
				<div style="float: left">	
					<img src="images/geeko.jpg" alt="openSUSE"/>
				</div>		
				<div style="text-align: right">
					{if $logued eq 1}
						{eval var=$CURRENT_USER->groupid assign="crgrp"}
						{foreach from=$CREDENTIALS[$crgrp] item=cr}
							{if $cr eq 'management'}
								<form method="post" id="manager">{$lang.management}&nbsp;
									<select name="action" id="action" class="txt" onchange="processForm('manager')">
										<option value="">-</option>
										{foreach from=$manlist item=cr}
											<option value="{$cr}">{$lang.$cr}</option>
										{/foreach}
										{if $CURRENT_USER->groupid eq 'ADMIN'}
											<option value="prselection">{$lang.browse}</option>
										{/if}
									</select>
								</form>
							{/if}
							{*
							{if $cr eq 'management'}	
								{include file="button.tpl" name=$lang.management action="actMenu('management')"}
							{/if}
							*}
							{if $cr eq 'home'}	
								{include file="button.tpl" name=$lang.home action="actMenu('prselection')"}
							{/if}
							{if $crgrp neq 'ADMIN' AND $crgrp neq 'COORD'} 
								{if $cr eq 'taskadmin'}	
									{include file="button.tpl" name=$lang.taskadmin action="actMenu('taskadmin')"}
								{/if}
								{if $cr eq 'filecheckin'}	
									{include file="button.tpl" name=$lang.filecheckin action="actMenu('filecheckin')"}
								{/if}
								{if $cr eq 'reguser'}	
									{include file="button.tpl" name=$lang.reguser action="actMenu('reguser')"}
								{/if}
							{/if}
						{/foreach}
						{include file="button.tpl" name=$lang.userpref action="actMenu('userpref')"}
						{include file="button.tpl" name=$lang.chpwd action="actMenu('chpwd')"}
						{include file="button.tpl" name=$lang.logout action="actMenu('logout')"}
					
					{else}
						{if $location neq 'reguser'}
							{include file="button.tpl" name=$lang.reguser action="actMenu('reguser')"}
						{/if}
					{/if}
					{if $logued eq 1}
					<br/>
					<b>{$lang.welcome} {$CURRENT_USER->userid}</b>
					<br/>
						{if $CURRENT_USER->groupid neq 'ADMIN' }
						<form method="post" id="quickaction">
							<input type="hidden" name="action" value="list">
							{$lang.goto}&nbsp;
							<select name="projectid" id="projectid" class="txt" onchange="processForm('quickaction')">
								<option value="">-</option>
								{foreach from=$projectlist item=prj}
									{eval var=$prj->id assign="prid"}
									<option value="{$prj->id}">{$prj->name}</option>
								{/foreach}
							</select>
						</form>
						{/if}
					{/if}
				</div>
			</div>
		</div>
		<div class="box_bottom_row">
			<div class="box_left"></div>
			<div class="box_right"></div>
		</div>
	</div></div>
<!-- End Logo -->


			